package com.hxtec.polaris.service;

import com.hxtec.polaris.entity.ShopProductBase;
import com.hxtec.polaris.entity.ShopProductSaleAttr;
import com.hxtec.polaris.entity.ShopProductSaleAttrValue;
import com.hxtec.polaris.entity.ShopProductVariant;
import com.hxtec.polaris.entity.ShopProductVariantAttrValue;
import io.swagger.models.auth.In;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @author Caps
 * @date 2019/11/16
 */
public interface ProductService {

    ShopProductVariant getSkuProductBySku(Integer sku);

    List<ShopProductSaleAttr> spuSaleAttrListCheckBySku(Integer spu, Integer sku);

    List<ShopProductVariant> getSkuSaleAttrValueListBySpu(Integer spu);

    ShopProductBase getSpuInfoBySpu(Integer spu);

    List<ShopProductVariantAttrValue> getSkuSaleAttrValueBySku(Integer sku);

    void saveSkuInfo(ShopProductVariant skuInfo);

    List<ShopProductVariant> getSkuBySkuId(Integer spuId);

    Map<String,Object> getProductDetail(HttpServletRequest request, Integer sku);
}
